<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags"  prefix="s"%>
<script type="text/javascript">
function topage(num){
	//给id为pagenum的表单元素赋值
	document.getElementById("pagenum").value = num;
	//提交表单
	document.forms[0].submit();
}
</script>

<style type="text/css">

td div{
	margin-top:15px;
}
div a{
	
	border:1px solid lightblue;
	padding:3px 3px 3px 3px;
	border-radius:25%;
}
a:active{
	border-left:3px solid lightblue;
	border-top:3px solid lightblue;
	border-right:0px solid white;
	border-bottom:0px solid white;
}
</style>

<div id="pagediv">
	<a href="javascript:topage(1)">首页</a>
	<a href="javascript:topage(${pb.prePageNum})">上一页</a>
	<s:iterator begin="%{pb.beginPageNum}" end="%{pb.endPageNum}" var="snum">
		<a href="javascript:topage(${snum})">${snum}</a>
	</s:iterator>
	<a href="javascript:topage(${pb.nextPageNum})">下一页</a>
	<a href="javascript:topage(${pb.totalPageNum})">末页</a>
	
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	第${pb.currentPageNum}页/共${pb.totalPageNum}页
</div>
